/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package abstractas;

/**
 *
 * @author alumnom
 */
public class Empleado {
    private String Nombre;
    private double sueldo;
    public Empleado(String nom,double suel){
       this.Nombre=nom;
       this.sueldo=suel;
    }

    public String getNombre() {
        return this.Nombre;
    }
    
    public double calcularNomina(){
        return (sueldo-this.calcularRetenciones());
        
    }
    public double calcularRetenciones(){
        double retencion=sueldo*0.21;
        return retencion;
    }
}
